A = imread('cameraman.tif');
figure,imshow(A,'InitialMagnification',100);
B = fft2(A);
Angle = angle(B);
figure,imshow(Angle,'InitialMagnification',100);
C = abs(B);
figure,imshow(C,[],'InitialMagnification',100);
D = fftshift(B);
figure,imshow(D,[],'InitialMagnification',100);
figure,imshow((1+log(abs(D))),[],'InitialMagnification',100);